package org.coco.cloud.order.feign;

import org.coco.cloud.order.feign.fallback.ProductFeignClientFallBack;
import org.coco.cloud.product.bean.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Author fengleifl-hzgs
 * @Date 2025/1/26
 * @since
 */
@FeignClient(value = "service-product", fallback = ProductFeignClientFallBack.class)
public interface ProductFeignClient {

    @GetMapping("/api/product/product/{id}")
    Product getProductById(@PathVariable("id") Long id);
}
